# $Id: PKGBUILD 72993 2012-06-26 19:39:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
# Contributor: Giorgio Lando <patroclo7@gmail.com>
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>

pkgname=mairix
pkgver=0.23
pkgrel=1
pkgdesc="A program for indexing and searching emails"
arch=('i686' 'x86_64')
url="http://www.rpcurnow.force9.co.uk/mairix/"
license=('GPL')
depends=(bzip2 zlib)
makedepends=('flex' 'bison')
install=$pkgname.install
source=(http://downloads.sf.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('732cf94e05c779ff1ce4a9e9eb19ab44')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make
  make DESTDIR=$pkgdir install

  mkdir -p $pkgdir/usr/share/
  mv $pkgdir/usr/man $pkgdir/usr/share/
  install -D -m 644 dotmairixrc.eg $pkgdir/etc/mairixrc.sample
}
